package com.meilai.project.entity.media;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 选位集合-时间段-具体点位-调位历史（原始的点位）
 * </p>
 *
 * @author 张驰
 * @since 2022-01-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("media_point_choose_daterange_mediapoint_replace_log")
@ApiModel(value="MediaPointChooseDaterangeMediapointReplaceLog对象", description="选位集合-时间段-具体点位-调位历史（原始的点位）")
public class MediaPointChooseDaterangeMediapointReplaceLog extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "media_point_choose表的id")
    private Long choose_id;

    @ApiModelProperty(value = "media_point_choose_daterange表的id")
    private Long daterange_id;

    @ApiModelProperty(value = "点位id，media_point表的id")
    private Long media_point_id;

    @ApiModelProperty(value = "原点位id")
    private Long old_media_point_id;

    @ApiModelProperty(value = "集合点位的主键，media_point_choose_daterange_mediapoint的id")
    private Long choose_point_auto_id;

    @ApiModelProperty(value = "操作人id")
    private Long operator_id;

    @ApiModelProperty(value = "替换时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime replace_at;


    public static final String CHOOSE_ID = "choose_id";

    public static final String DATERANGE_ID = "daterange_id";

    public static final String MEDIA_POINT_ID = "media_point_id";

    public static final String OLD_MEDIA_POINT_ID = "old_media_point_id";

    public static final String CHOOSE_POINT_AUTO_ID = "choose_point_auto_id";

    public static final String REPLACE_AT = "replace_at";

}
